/**
 * 
 */
package weibo4j.crawler;

/**
 * @author longrui
 *
 */
public class StatusQueueRecord extends QueueRecord {
	public long statusId;
	
	public StatusQueueRecord(long statusId, String enqueueTime){
		super();
		this.statusId = statusId;
		this.enqueueTime = enqueueTime;
	}
	
	public String[] getRecord(){
		String[] res = new String[2];
		res[0] = Long.toString(statusId);
		res[1] = enqueueTime;
		return res;
	}
	public static String getFieldString(){
		return "(status_id, enqueue_time)";
	}
	public static String getEmptyValueString(){
		return "(?, ?)";
	}
	
	public String getStatusQueueRecordSQLString(){
		return "insert into queue4status set status_id=" + Long.toString(statusId)
			+ ", enqueue_time='" + enqueueTime + '\'';
	}
}
